package com.mzj.saas.mservice.propertybill.repository;


import com.mzj.saas.mservice.propertybill.entity.EstateExpenseBillDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface EstateExpenseBillDetailRepository extends PagingAndSortingRepository<EstateExpenseBillDetail, Long>, JpaSpecificationExecutor<EstateExpenseBillDetail>, JpaRepository<EstateExpenseBillDetail, Long> {

    EstateExpenseBillDetail findByExpenseBillIdAndChargeType(Long expenseBillId, Integer chargeType);

    EstateExpenseBillDetail findByExpenseBillId(Long expenseBillId);
}
